package cn.jly.boot.mp.service;

import cn.jly.boot.mp.bean.User;
import cn.jly.boot.mp.bean.UserInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author lanyangji
 * @description userService
 * @date 2020/12/26 下午 8:53
 */
public interface UserService {
    List<User> getAll();

    int add(User user);

    int deleteById(Long id);

    int updateById(User user);

    Page<UserInfo> findByCondition(UserInfo userInfo, Pageable pageable);
}
